﻿using MemberPoint.Business;
using MemberPoint.Entity.ViewModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MMPS.Entity.ViewModel;
using MMPS.Business;

namespace MPMCDC.Controllers
{
    public class MemConController : Controller
    {
        // GET: MemCon
        public ActionResult Index()
        {
            return View();
        }
        public ActionResult getCountConters(string careId)
        {
            CountCenterService _CountCenterService = new CountCenterService();
            var list = _CountCenterService.getQ(careId);
            return Json(list);
        }
        /// <summary>
        /// 会员减积分
        /// </summary>
        /// <returns></returns>
        public ActionResult IndexMemMin()
        {
            return View();
        }
        /// <summary>
        /// 消费历史记录
        /// </summary>
        /// <returns></returns>
        public ActionResult Indexhistory()
        {
            return View();
        }

        public ActionResult IndexhistoryList(string CardORmobile, MemCardsOrderListViewModel viewModel)
        {

            OrderService orderService = new OrderService();
            var list = orderService.ConOrderList(CardORmobile, viewModel);
            return Json(list.Data);
        }
    }
}